let wxstore = {
  state:{
    name:""
  },

  createPage(obj){
    obj.data = {
      $state:this.state,
      ...obj.data
    }
    obj.setState = this.setState;
    return obj;
  },
  setState(key,value){
    // let _list = [{}];

    let { list } = this.data;
    list = [...list,...newList];
    {
      [list]:""
    }
    {
      'name':""
    }
    this.setData({
      ['list['+1+']']:''
    })
  }
}


Page(wxstore.createPage({
  data:{},
  onLoad(){
    this.data.$state.name
  }

}))